package cn.iocoder.lw.module.core.controller.admin.house.vo;

import cn.iocoder.lw.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import static cn.iocoder.lw.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 核心房源分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class CoreHousePageReqVO extends PageParam {

    private static final long serialVersionUID = 1L;

	@Schema(description = "项目编号", example = "1")
    private Long projectId;

    @Schema(description = "小区名称", example = "示例小区")
    private String communityName;

    @Schema(description = "楼栋", example = "1号楼")
    private String building;

    @Schema(description = "楼层", example = "5层")
    private String floor;

    @Schema(description = "房间号", example = "501")
    private String roomNumber;

    @Schema(description = "房源类型", example = "1")
    private Integer houseType;

    @Schema(description = "房源状态", example = "0")
    private Integer status;

    @Schema(description = "最小租金", example = "2000")
    private BigDecimal minRent;

    @Schema(description = "最大租金", example = "10000")
    private BigDecimal maxRent;

    @Schema(description = "最小面积", example = "50")
    private BigDecimal minArea;

    @Schema(description = "最大面积", example = "200")
    private BigDecimal maxArea;

    @Schema(description = "水表编号", example = "W20230001")
    private String waterMeterNumber;

    @Schema(description = "电表编号", example = "E20230001")
    private String electricityMeterNumber;

    @Schema(description = "门锁编号", example = "L20230001")
    private String lockNumber;

    @Schema(description = "联系人姓名", example = "张三")
    private String contactName;

    @Schema(description = "联系人手机号", example = "13800138000")
    private String contactPhone;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}